<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>船舶违法举报信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<!-- <ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/ship/shipIllegalReport/">船舶违法举报信息列表</a></li>
		<shiro:hasPermission name="ship:shipIllegalReport:edit"><li><a href="${ctx}/ship/shipIllegalReport/shipIllegalReportform">船舶违法举报信息添加</a></li></shiro:hasPermission>
	</ul> -->
	<form:form id="searchForm" modelAttribute="shipIllegalReport" action="${ctx}/ship/shipIllegalReport/shipIllegalReportList" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<ul class="ul-form">
			<li><label>船牌号：</label>
				<form:input path="shipNo" htmlEscape="false" maxlength="50" class="input-search"/>
			</li>
			<li class="btns">
				<input id="btn_search" class="btn btn-primary" type="submit" value="查询"/>
				<shiro:hasPermission name="ship:shipIllegalReport:edit"><input id="btnSubmit" class="btn" type="button" value="新增" onclick='opencreateWindow("ship/shipIllegalReport/shipIllegalReportForm","新增",1000,480,"10px")'/>&nbsp;&nbsp;</shiro:hasPermission>
			</li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<div class="css-tl">
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<shiro:hasPermission name="ship:shipIllegalReport:edit">
					<th>操作</th>
				</shiro:hasPermission>
				<th class="sort-column shipNo">船牌号</th>
				<th >省份</th>
				<th>城市</th>
				<th>县（区）</th>
				<th>详细地址</th>
				<th class="sort-column">违法类型</th>
				<th>违法行为</th>
				<th>举报人</th>
				<th class="sort-column createDate">创建时间</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="shipIllegalReport">
			<tr>
				<shiro:hasPermission name="ship:shipIllegalReport:edit"><td class="center">
					<a href="javascript:void(0);" onclick='opendetailWindow("ship/shipIllegalReport/shipIllegalReportForm?id=${shipIllegalReport.id}","查看",1000,480,"10px")'><img src="${ctxStatic}/images/sd/icon57.png"></a>
    				<a href="javascript:void(0);"  onclick='opencreateWindow("ship/shipIllegalReport/shipIllegalReportForm?id=${shipIllegalReport.id}","修改",1000,480,"10px")'><img src="${ctxStatic}/images/sd/icon58.png"></a>
					<a href="${ctx}/ship/shipIllegalReport/delete?id=${shipIllegalReport.id}" onclick="return confirmx('确认要删除该船舶违法举报信息吗？', this.href)"><img src="${ctxStatic}/images/sd/icon59.png"></a>
				</td></shiro:hasPermission>
				<td>
					${shipIllegalReport.shipNo}
				</td>
				<td>
					
					${shipIllegalReport.province}
				</td>
				<td>
					
					${shipIllegalReport.city}
				</td>
				<td>
					
					${shipIllegalReport.district}
				</td>
				<td>
					
					${shipIllegalReport.address}
				</td>
				<td>
					
					${shipIllegalReport.criminalType}
				</td>
				<td>
					
					${shipIllegalReport.unlawfulAct}
				</td>
				<td>
					
					${shipIllegalReport.reportUserId}
				</td>
				<td>
					
					<fmt:formatDate value="${shipIllegalReport.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	</div>
	<div class="list-bq">
		<ul>
			<li><img src="${ctxStatic}/images/sd/icon57.png" /><span>查看</span>
			</li>
			<li><img src="${ctxStatic}/images/sd/icon58.png" /><span>修改</span>
			</li>
			<li><img src="${ctxStatic}/images/sd/icon59.png" /><span>删除</span>
			</li>
		</ul>
	</div>
	<div class="pagination">${page}</div>
	
	<script type="text/javascript">
		/* add for lxh 20160309
		url :url /allAsset/dialogCategoryIndex
		title:标题
		width：宽度
		height：高度
		top：窗口离顶部的距离,可以是百分比或像素(如 100px)
		use:打开新增窗口
		*/
		 function opencreateWindow(url,title,width,height,topValue){
			url ="iframe:"+"${ctx}/"+url;
			topValue = (topValue =='' ? '10%':'10px');
			top.$.jBox.open(url, title, width, height, { 
				persistent: true, 
				top:topValue,
				buttons: {},submit:function(v,h,f){
				 /*  点击窗口按钮后的回调函数，返回true时表示关闭窗口，参数有三个，
					 v表示所点的按钮的返回值，
					 h表示窗口内容的jQuery对象，
					 f表示窗口内容里的form表单键值
				  */
				},
				closed: function () { 
					/* 窗口关闭后执行的函数 */
					var istrue=$('#closedwindow', window.parent.document).val();
					if(istrue=="true"){
						//window.location.reload();
						$('#closedwindow', window.parent.document).val("false");
						$("#btn_search").click();
					}
				} 
			});
		} 
	</script>
	
</body>
</html>